﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchElections.aspx.cs"
    Inherits="OVS.SearchElections" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link href="~/OVS.css" rel="stylesheet" type="text/css" />
    <link href="~/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    
      <div>
                    <asp:Label ID="Label1" runat="server" CssClass="ParaTitle">Search Elections </asp:Label>
                    </div>
    <div>
        <div id="divResult" style="margin: 0px 10px 10px 10px;">
            <div runat="server" id="divControls">
                <OVSControl:SectionHeaderPlain ID="SearchRes" runat="server" SectionTitle="Search Results" />
                <div id="divGrid" style="border: solid 1px silver; height: 350px; text-align: center;
                    overflow-x: hidden; overflow-y: auto;">
                    <asp:GridView ID="gvResults" AutoGenerateColumns="true" BorderColor="Black" runat="server"
                        AllowPaging="true" AllowSorting="true" OnRowCommand="gvResults_OnRowCommand">
                        <HeaderStyle BackColor="White" Font-Size="10px" ForeColor="#990000" BorderStyle="None" />
                        <RowStyle BackColor="#F7F3F7" Font-Names="Verdana" Font-Size="XX-Small" BorderStyle="None" />
                        <AlternatingRowStyle BackColor="White" Font-Names="Verdana" Font-Size="XX-Small"
                            BorderStyle="None" />
                        <Columns>
                            <asp:TemplateField HeaderStyle-Width="5%" ItemStyle-Width="5%" ItemStyle-BorderStyle="None"
                                HeaderStyle-BorderStyle="None">
                                <ItemTemplate>
                                    <asp:Button CausesValidation="false" CommandName="EditElection" runat="server" ID="btnEdit"
                                        Text="Edit" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ElectionId") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
